package com.ruoyi.buss.utils;

import com.alibaba.csp.sentinel.util.StringUtil;

import java.util.List;

/**
 * Created by LiChangjiang on 2017/12/26 0026.
 */
public class ListUtil
{
    /**
     * 校验list是否为空，空则返回TRUE
     *
     * @param list 目标集合
     * @return boolean
     */
    public static boolean isNullOrEmpty(List list)
    {
        return null == list || list.isEmpty();
    }

    public static String getSjrq(String sjrq){
        if(StringUtil.isNotEmpty(sjrq)){
            sjrq = sjrq.replace("-", "");
            return sjrq;
        }
        return sjrq;
    }

}
